<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
   <h1>退出成功！</h1>
<h3></h3>
<script>
    let n =3;
    document.querySelector('h3').innerHTML=`${n--}秒后跳转至登录页`;
    setInterval(() => {
        document.querySelector('h3').innerHTML=`${n--}秒后跳转至登录页`;
    }, 1000);
   

    setTimeout(() => {
        window.location.href = 'http://localhost/login'
    }, 3000);
</script> 
</body>
</html>



